package org.cdivtc.exam.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(description = "学生新增DTO")
public class StudentAddDTO {
    @ApiModelProperty(value = "学生姓名", required = true, example = "张三")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "性别", example = "男")
    private String gender;

    @ApiModelProperty(value = "登录账号", required = true, example = "student01")
    @NotBlank(message = "账号不能为空")
    private String account;

    @ApiModelProperty(value = "登录密码", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "手机号", example = "13800138000")
    private String phone;
}
